package com.china.springServer.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ForkJoinPool;

@Configuration
public class ForkJoinPoolConfig {

    @Bean(name = "myForkJoinPool")
    public ForkJoinPool create(){
        return new ForkJoinPool(10);
    }

}
